package gbench.appdemo.myworld.economy.strategy;

import gbench.common.tree.LittleTree.IRecord;
import lombok.Data;


/**
 * 主意想法
 * @author gbench
 *
 */
@Data
public class Idea {
    
    /**
     * 勾乙个名称想法
     * @param name 想法名称
     */
    public Idea(final String name){
        this.name = name;
    }
    
    private String name;
    private String description;
    
    /**
     * 
     * @param name
     * @param value
     * @return
     */
    public Idea addAttribute(final String name, final Object value) {
        this.attributes.add(name,value);
        return this;
    }
    
    /**
     * 获取属性值
     * @param name
     * @return
     */
    public Object attr(final String name) {
        return this.attributes.get(name);
    }
    
    private IRecord attributes;

}
